Apg-Cii
Apg Cad Instructions Interpreter

Viewer

Layers

 

Cad test settings

 
Setup tests Default description -2000 -1000 0 1000 2000 0 1000 2000 3000 LF: 4000 SSx: 400 SDx: 300 ZERO: 0,0 HWR: 2000,0 RS1: 2300,0 RS2: 2300,-1000 HWL: -2000,0 LS1: -2400,0 LS2: -2400,-1000 { "canvasWidth": 1000, "canvasHeight": 563, "viewPortWidth": 5000, "viewPortHeight": 4000, "originXDisp": 2500, "originYDisp": 400 } Setup tests Default description 2026-01-29T00:28:07.615Z

Logger

0000 0.00000 0.00000   1    ApgCii.constructor{ 
0001 0.00000 0.00000 1 }
0002 0.00000 0.00000 1 ApgCii.set{
0003 0.00000 0.00000 2 ApgCii.#validateAndSet{
0004 0.00400 0.00400 2 }
0005 0.00400 0.00000 1 }
0006 0.00400 0.00000 1 ApgCii.build{
0007 0.00400 0.00000 2 ApgCii.setupBegin{
0008 0.00400 0.00000 2 > 1: SETUP_BEGIN
0009 0.00400 0.00000 2 }
0010 0.00400 0.00000 2 ApgCii.setName_{
0011 0.00400 0.00000 2 > 2: SET_NAME
0012 0.00400 0.00000 2 }
0013 0.00400 0.00000 2 ApgCii.setViewBox_{
0014 0.00400 0.00000 2 > 3: SET_VIEWBOX
0015 0.00600 0.00200 2 }
0016 0.00600 0.00000 2 ApgCii.setCartesians_{
0017 0.00600 0.00000 2 > 4: SET_CARTESIANS
0018 0.00800 0.00200 2 }
0019 0.00800 0.00000 2 ApgCii.setGrid_{
0020 0.00800 0.00000 2 > 5: SET_GRID
0021 0.00800 0.00000 2 }
0022 0.00800 0.00000 2 ApgCii.setBackground_{
0023 0.00800 0.00000 2 > 6: SET_BACKGROUND
0024 0.00800 0.00000 2 }
0025 0.00800 0.00000 2 ApgCii.setupEnd{
0026 0.00800 0.00000 2 > 7: SETUP_END
0027 0.01000 0.00200 2 }
0028 0.01000 0.00000 2 ApgCii.newPoint_{
0029 0.01000 0.00000 2 > 8: NEW_POINT - ZERO
0030 0.01000 0.00000 2 }
0031 0.01000 0.00000 2 ApgCii.newPoint_{
0032 0.01000 0.00000 2 > 9: NEW_POINT - HWR
0033 0.01000 0.00000 2 }
0034 0.01000 0.00000 2 ApgCii.newPointByDelta_{
0035 0.01000 0.00000 2 > 10: NEW_POINT_DELTA - RS1
0036 0.01000 0.00000 2 }
0037 0.01200 0.00200 2 ApgCii.newPointByDelta_{
0038 0.01200 0.00000 2 > 11: NEW_POINT_DELTA - RS2
0039 0.01200 0.00000 2 }
0040 0.01200 0.00000 2 ApgCii.#drawPolyLine{
0041 0.01200 0.00000 2 > 12: DRAW_POLYLINE
0042 0.01200 0.00000 3 ApgCii.#getPointsByNames{
0043 0.01200 0.00000 3 }
0044 0.01200 0.00000 2 }
0045 0.01200 0.00000 2 ApgCii.newPoint_{
0046 0.01200 0.00000 2 > 13: NEW_POINT - HWL
0047 0.01200 0.00000 2 }
0048 0.01200 0.00000 2 ApgCii.newPointByDelta_{
0049 0.01200 0.00000 2 > 14: NEW_POINT_DELTA - LS1
0050 0.01200 0.00000 2 }
0051 0.01400 0.00200 2 ApgCii.newPointByDelta_{
0052 0.01400 0.00000 2 > 15: NEW_POINT_DELTA - LS2
0053 0.01400 0.00000 2 }
0054 0.01400 0.00000 2 ApgCii.#drawPolyLine{
0055 0.01400 0.00000 2 > 16: DRAW_POLYLINE
0056 0.01400 0.00000 3 ApgCii.#getPointsByNames{
0057 0.01400 0.00000 3 }
0058 0.01400 0.00000 2 }
0059 0.01400 0.00000 2 ApgCii.pushLayer_{
0060 0.01400 0.00000 2 > 17: PUSH_LAYER - Layer_Dimensions
0061 0.01400 0.00000 2 }
0062 0.01400 0.00000 2 ApgCii.#drawLinearDim{
0063 0.01400 0.00000 2 > 18: DRAW_LIN_DIM
0064 0.01400 0.00000 3 ApgCii.#get2PointsByNames{
0065 0.01600 0.00200 4 ApgCii.#getPointsByNames{
0066 0.01600 0.00000 4 }
0067 0.01600 0.00000 3 }
0068 0.01600 0.00000 2 }
0069 0.01600 0.00000 2 ApgCii.#drawLinearDim{
0070 0.01600 0.00000 2 > 19: DRAW_LIN_DIM
0071 0.01600 0.00000 3 ApgCii.#get2PointsByNames{
0072 0.01600 0.00000 4 ApgCii.#getPointsByNames{
0073 0.01600 0.00000 4 }
0074 0.01600 0.00000 3 }
0075 0.01600 0.00000 2 }
0076 0.01600 0.00000 2 ApgCii.#drawLinearDim{
0077 0.01800 0.00200 2 > 20: DRAW_LIN_DIM
0078 0.01800 0.00000 3 ApgCii.#get2PointsByNames{
0079 0.01800 0.00000 4 ApgCii.#getPointsByNames{
0080 0.01800 0.00000 4 }
0081 0.01800 0.00000 3 }
0082 0.01800 0.00000 2 }
0083 0.01800 0.00000 2 ApgCii.popLayer_{
0084 0.01800 0.00000 2 > 21: POP_LAYER
0085 0.01800 0.00000 2 }
0086 0.01800 0.00000 2 ApgCii.pushLayer_{
0087 0.01800 0.00000 2 > 22: PUSH_LAYER - Layer_Debug
0088 0.01800 0.00000 2 }
0089 0.01800 0.00000 2 ApgCii.drawAllPointsWithInfo_{
0090 0.02000 0.00200 2 > 23: DRAW_ALL_POINTS
0091 0.02000 0.00000 2 }
0092 0.02000 0.00000 2 ApgCii.newPointByDelta_{
0093 0.02000 0.00000 2 > 24: NEW_POINT_DELTA - resume
0094 0.02000 0.00000 2 }
0095 0.02000 0.00000 2 ApgCii.#drawText{
0096 0.02000 0.00000 2 > 25: DRAW_TEXT
0097 0.02000 0.00000 2 }
0098 0.02000 0.00000 1 }

Instructions

{"type":"SETUP_BEGIN"}
{"type":"SET_NAME", "name":"Setup tests"}
{"type":"SET_VIEWBOX", "payload":{"canvasWidth":1000, "canvasHeight":563, "viewPortWidth":5000, "viewPortHeight":4000, "originXDisp":2500, "originYDisp":400}}
{"type":"SET_CARTESIANS", "payload":{"mode":"Normal", "axisStroke":{"color":"green", "width":3}, "drawTicks":true, "ticksStep":100, "ticksSize":25, "bigTicksEvery":1000, "bigTicksSize":50, "tickStroke":{"color":"blue", "width":20}, "drawBigTicksLables":true, "drawBigTicks":true, "labelsTextStyleName":"mono"}}
{"type":"SET_GRID", "payload":{"mode":"Dots", "gridStep":100, "gridStroke":{"color":"red", "width":2, "dashPattern":[10, 90], "dashOffset":5}, "drawMajors":false, "majorEvery":500, "majorGridStroke":{"color":"orange", "width":5, "dashPattern":[10, 90], "dashOffset":5}}}
{"type":"SET_BACKGROUND", "payload":{"draw":true, "strokeWidth":20, "strokeColor":"cyan", "fillColor":"#250060"}}
{"type":"SETUP_END"}
{"type":"NEW_POINT", "name":"ZERO", "x":0, "y":0}
{"type":"NEW_POINT", "name":"HWR", "x":2000, "y":0}
{"type":"NEW_POINT_DELTA", "name":"RS1", "origin":"HWR", "w":300, "h":0}
{"type":"NEW_POINT_DELTA", "name":"RS2", "origin":"RS1", "w":0, "h":-1000}
{"type":"DRAW_POLYLINE", "points":["HWR", "RS1", "RS2"]}
{"type":"NEW_POINT", "name":"HWL", "x":-2000, "y":0}
{"type":"NEW_POINT_DELTA", "name":"LS1", "origin":"HWL", "w":-400, "h":0}
{"type":"NEW_POINT_DELTA", "name":"LS2", "origin":"LS1", "w":0, "h":-1000}
{"type":"DRAW_POLYLINE", "points":["HWL", "LS1", "LS2"]}
{"type":"PUSH_LAYER", "name":"Layer_Dimensions"}
{"type":"DRAW_LIN_DIM", "points":["HWL", "HWR"], "radious":500, "text":["LF:", ""]}
{"type":"DRAW_LIN_DIM", "points":["HWL", "LS1"], "radious":-700, "text":["SSx:", ""]}
{"type":"DRAW_LIN_DIM", "points":["HWR", "RS1"], "radious":-700, "text":["SDx:", ""]}
{"type":"POP_LAYER"}
{"type":"PUSH_LAYER", "name":"Layer_Debug"}
{"type":"DRAW_ALL_POINTS", "radious":10}
{"type":"NEW_POINT_DELTA", "name":"resume", "origin":"ZERO", "w":0, "h":1600}
{"type":"DRAW_TEXT", "origin":"resume", "text":["{", " \"canvasWidth\": 1000, ", " \"canvasHeight\": 563, ", " \"viewPortWidth\": 5000, ", " \"viewPortHeight\": 4000, ", " \"originXDisp\": 2500, ", " \"originYDisp\": 400", "}"]}

CAD State

settings

{
  "name": "Setup tests",
  "viewBox": {
    "canvasWidth": 1000,
    "canvasHeight": 563,
    "viewPortWidth": 5000,
    "viewPortHeight": 4000,
    "originXDisp": 2500,
    "originYDisp": 400
  },
  "background": {
    "draw": true,
    "strokeWidth": 20,
    "strokeColor": "cyan",
    "fillColor": "#250060"
  },
  "foreGround": {
    "draw": true,
    "strokeWidth": 4,
    "strokeColor": "black",
    "fillColor": "black"
  },
  "grid": {
    "mode": "Dots",
    "gridStep": 100,
    "gridStroke": {
      "color": "red",
      "width": 2,
      "dashPattern": [
        10,
        90
      ],
      "dashOffset": 5
    },
    "drawMajors": false,
    "majorEvery": 500,
    "majorGridStroke": {
      "color": "orange",
      "width": 5,
      "dashPattern": [
        10,
        90
      ],
      "dashOffset": 5
    }
  },
  "cartesians": {
    "mode": "Normal",
    "axisStroke": {
      "color": "green",
      "width": 3
    },
    "drawTicks": true,
    "tickStroke": {
      "color": "blue",
      "width": 20
    },
    "ticksStep": 100,
    "ticksSize": 25,
    "drawBigTicks": true,
    "bigTicksEvery": 1000,
    "bigTicksSize": 50,
    "drawBigTicksLables": true,
    "labelsTextStyleName": "mono",
    "labelsStyle": {
      "font": "Verdana, Geneva, sans-serif",
      "size": 71.04795737122558,
      "anchor": "start",
      "aspectRatio": 0.549,
      "fill": {
        "color": "black",
        "opacity": 1
      }
    }
  },
  "debug": false
}

strokeStyles

[
  "None",
  "Background",
  "Foreground",
  "Grids",
  "Cartesian",
  "Debug",
  "Annotations",
  "Dimensions",
  "Symmetry",
  "Symmetry_Large",
  "Dotted",
  "DottedLarge",
  "Hidden",
  "HiddenLarge",
  "Cartouche",
  "HatchGray",
  "HatchBrown",
  "HatchGreen"
]

fillStyles

[
  "None",
  "Background",
  "Foreground",
  "Debug",
  "Hidden",
  "Dimensions",
  "Annotations",
  "Cartouche"
]

textStyles

[
  "Default",
  "Debug",
  "Mono",
  "Title",
  "Dimensions",
  "Annotations",
  "CartesianLabel"
]

gradients

[
  "LinearLeftToRightLightShadow",
  "LinearLeftToRightDarkShadow",
  "LinearTopToDownLightShadow",
  "LinearTopToDownDarkShadow"
]

patterns

[
  "BackGridLines",
  "BackGridLinesAsDots",
  "CartesianHorizontal",
  "CartesianVertical",
  "Cross1",
  "Cross2",
  "Saltire1",
  "Saltire2",
  "Diagonal1",
  "Diagonal2",
  "Floor1",
  "Floor2",
  "Brick1",
  "Brick2",
  "Roof1",
  "Roof2",
  "RoofTiles1",
  "RoofTiles2"
]

textures

[
  "Wood_Ash",
  "Wood_Oak"
]

blocks

[
  "mechArrow",
  "simpleArrow",
  "archArrow",
  "dotArrow"
]

layers

[
  "Layer_Background",
  "Layer_Grids",
  "Layer_Cartesians",
  "Layer_Annotations",
  "Layer_Dimensions",
  "Layer_Debug",
  "Layer_Hidden",
  "Layer_Zero",
  "Layer_Cartouche"
]

groups

[]